package complex;

public class UserServiceImpl implements UserService{
    private UserDao dao;

    public void setDao (UserDao dao) {
        this.dao = dao;
    }

    @Override
    public void insert() {
        System.out.println("insert in service");
        dao.inserts();
        dao.update();
    }
}
